﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AdminPage.master" AutoEventWireup="true" CodeFile="Customer_Details.aspx.cs" Inherits="Admin_ViewCustomerProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
    function ShowMessage() {
        alert('Update Status Successfully !');
        window.location.href = 'Customer_Management.aspx';
    }

</script>
    <table align="center" class="style3">
        <tr>
            <td class="style3" colspan="3" 
                style="height: 30px; background-image: url('../images/bg_head.png')">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="White" 
                    Text="Customer Profile"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style6">
                &nbsp;</td>
            <td colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5" colspan="2">
                <asp:DetailsView ID="dvCustomer" runat="server" AutoGenerateRows="False" 
                    CellPadding="4" CssClass="style3" DataKeyNames="CustID" 
                    DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
                    Height="50px" Width="188px" style="margin-right: 22px">
                    <AlternatingRowStyle BackColor="White" />
                    <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
                    <EditRowStyle BackColor="#2461BF" />
                    <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
                    <Fields>
                        <asp:BoundField DataField="CustID" HeaderText="CustID" 
                            InsertVisible="False" ReadOnly="True" SortExpression="CustID" />
                        <asp:BoundField DataField="AccID" HeaderText="AccID" 
                            SortExpression="AccID" />
                        <asp:BoundField DataField="Cust_Name" HeaderText="Cust_Name" 
                            SortExpression="Cust_Name" />
                        <asp:BoundField DataField="Cust_Email" HeaderText="Cust_Email" 
                            SortExpression="Cust_Email" />
                        <asp:BoundField DataField="Cust_Birthday" HeaderText="Cust_Birthday" 
                            SortExpression="Cust_Birthday" />
                        <asp:BoundField DataField="Cust_Gender" HeaderText="Cust_Gender" 
                            SortExpression="Cust_Gender" />
                        <asp:BoundField DataField="Cust_Address" HeaderText="Cust_Address" 
                            SortExpression="Cust_Address" />
                        <asp:BoundField DataField="Cust_Phone" HeaderText="Cust_Phone" 
                            SortExpression="Cust_Phone" />
                        <asp:BoundField DataField="DateCreated" HeaderText="DateCreated" 
                            SortExpression="DateCreated" />
                        <asp:BoundField DataField="Cust_Status" HeaderText="Cust_Status" 
                            SortExpression="Cust_Status" />
                    </Fields>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                </asp:DetailsView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:OPOConnectionString %>" 
                    SelectCommand="SELECT * FROM [Customer] WHERE ([CustID] = @CustID)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="CustID" QueryStringField="CustID" 
                            Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5" colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5" style="width: 16%">
                <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Customer Status:"></asp:Label>
            </td>
            <td class="style5">
                <asp:RadioButtonList ID="rdlStatus" runat="server">
                    <asp:ListItem Selected="True">Enable</asp:ListItem>
                    <asp:ListItem>Disable</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5" colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style5" colspan="2">
                <asp:ImageButton ID="imgbUpdate" runat="server" 
                    ImageUrl="~/images/img_Update.png" onclick="imgbUpdate_Click" />
                <asp:ImageButton ID="imgbBack" runat="server" ImageUrl="~/images/img_Back.png" 
                    onclick="imgbBack_Click" CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style5" colspan="2">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

